//
//  UILabel+HZUILabel.m
//  MyDoctor
//
//  Created by 徐彩东 on 16/5/5.
//  Copyright © 2016年 heiyan. All rights reserved.
//

#import "UILabel+HZUILabel.h"

@implementation UILabel (HZUILabel)


-(instancetype)initWithTitle:(NSString *)title WitthTextFont:(CGFloat )textFon WithTextColor:(UIColor *)textColor{
    
    UILabel *label = [[UILabel alloc]init];
    
    //设置设置
    label.text = title;
    
    //设置字体大小
    label.font = [UIFont systemFontOfSize:textFon];
    
    //设置字体颜色
    label.textColor = textColor;
    
    [label sizeToFit];
    
    return label;
}

@end
